#include<string>
#include<iostream>
#include<stdio.h>

using namespace std;

int main()
{
    string *str=new string("test new");
    //--------------------------
    //void* operator new(size_t size);
    string *str2=(string*)operator new(sizeof(string));
    //str2.string("test 2");
    //--------------------------
    char str3[22];
    int data=123;
    int *pa=new(&data)int;
    int *pb=new(str3)int(9);

    int cnt;
    for(cnt=1;cnt<=22;cnt++)
    {
        printf("%d ",*(str3+cnt-1));
    }
    cout<<*pb<<endl;
}
